package com.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 员工角色关联表
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
@Data
@TableName("employee_role")
public class EmployeeRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * （主键）自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工ID
     */
    private Integer employeeId;

    /**
     * 角色ID
     */
    private Integer roleId;


    /**
     *
     */
    @TableField(exist = false)
    private List<Integer> roles;
}
